﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DOAN.DLL;
using DOAN.Public;

namespace DOAN.BLL
{
    public class KhuyenMaiBLL
    {
        KhuyenMaiDAL _khuyenMai;

        public KhuyenMaiBLL()
        {
            _khuyenMai = new KhuyenMaiDAL();
        }

        public DataTable Load()
        {
            return _khuyenMai.Load();
        }

        public int Insert(KhuyenMaiPublic p)
        {

            return _khuyenMai.Insert(p);
        }

        public int Update(KhuyenMaiPublic p)
        {
            return _khuyenMai.Update(p);
        }

        public int Delete(KhuyenMaiPublic p)
        {
            return _khuyenMai.Delete(p);
        }

        public DataTable Load_MaGC(GoiCuocPublic p)
        {
            return _khuyenMai.Load_MaGC(p);
        }
    }
}
